//颠倒二进制位----190
//颠倒给定的 32 位无符号整数的二进制位。


#include <stdint.h>
#include <stdio.h>


uint32_t reverseBits(uint32_t n) 
{
    uint32_t temp = 0;
    for(int i = 0; i < 32 && n != 0; i++)
    {
        temp |= (n & 1) << (31 - i);
        n = n >> 1;
    }
    return temp;
}

int main()
{
    uint32_t n = 00000000000000000000000000001000;
    printf("%d\n",reverseBits(n));
    return 0;
}